NorthStar CCM Workflow Editor

Getting Started

Overview

In NorthStar CCM, scenarios such as sending a PDF file by email or merging two templates in one single output file can be accomplished using workflows. Users can use the online tool to build and customize a series of processing steps or transformations that your data will go through, ultimately resulting in a document or set of documents being published along one or more output channels, like print, email or SMS.

The editor has a friendly interface through which, if you want to add a component to appear in your workflow, you can simply drag it from the left sidebar into the design surface.

Accessing Workflow Editor

The Workflow Editor can be accessed either by creating a new workflow from the Projects module, or by opening the edit mode from the Workflow Preview page.

To create a new workflow:

  1. Starting from the home screen, access Projects;
  2. Click the New button in the toolbar, and choose Workflow;
  3. Enter a relevant name for your workflow and click Ok. You will then be redirected to the Workflow Editor.

To access the workflow preview:

  1. Starting from the Project Details page, select the workflow (the .wk4 file format) you want to edit;
  2. Click the Edit button in the toolbar;
  3. You will be redirected to the Workflow Editor.

Understanding the Workflow Editor Layout

Before you start customizing your workflows within the Workflow Editor, it is important to take some time to familiarize yourself with the interface and terminologies used to describe where options are available.

Within the Workflow Editor, you will be able to find the following units:

Online Editor

In the Workflow Editor, there are three available tabs that can be accessed directly from the sidebar, each one with a different purpose:

Components

The workflow components help you to define clear rules to meet your business processes. The steps benefit the creation of the life cycle that your documents go through from simple data to the required business goals.

Components Table

To find out more information on each step, in particular, select the step you need from the table below:

Append Archive Assembly Copy to Amazon S3 Copy to Azure Copy to NorthStar CCM Folder Copy to FTP
Copy to Folder Copy to SharePoint Create Correspondence Create Project Create Version Create-Update People Custom
Data Ingestion Decompress Delete Version Electronic Signature Email Email (Advanced) Extract Sub-Form
Get Data Get Data (Advanced) Get Files Group If Index Issue
Maintenance Overlay Post to Social Media Print Provide Quote Publish Version Render
Render (Advanced) Render DITA Review Document Review Journey Review Snapshot Run Project Run Workflow
SMS Split Tag Task Validation Wait Web Request

Adding a new Component

Follow the steps below to insert a component into a workflow:

Editing a Component

There are multiple ways to edit a workflow component in the NorthStar CCM Platform:

Connecting Workflow Steps

The workflow editor does not provide automatic connections between the steps inserted. Therefore, you have to connect it manually, by dragging and dropping a line between them, in the way you need them to run.

If you find that you need to modify the order of your workflow steps after they are inserted or you are creating them out of order you can reconnect the steps in the Design Surface. To remove a connection, right-click on the connection line and select the Delete connection. Also, from the drop down menu displayed after right-clicking on the connection line, you can set the status of Succeeded or Failed. If you decide what step should flow into another step, hover the mouse over the first component, then drag and drop the line to the second one.

Note

It is not required that you have connections if steps fail, but it is highly recommended.

Workflow Stages

Workflow Stages consists of one or more steps enclosed in a phase of more workflow scenarios. By default, the NorthStar CCM Platform provides three stages: Start, Process and End. To edit an existing stage, right-click on it and select the needed option from the contextual menu:

Style

For configuring steps' properties within the workflow, Style Menu from the sidebar is the first choice. There you will find properties related to the selected step in the design surface.

To view all the available properties for each one of the component inserted in a workflow, access the Steps and Properties section of this guide.

Workflow Parameters

Workflow Parameters will allow users to modify the name of the Job that the Workflow will create, as well as add custom input parameters that can be used throughout the workflow. Use workflow parameters when you need to pass as input: a customer ID, output format, language identifiers and more.

Workflow Settings

In this section, you will learn how to specify some general settings for a workflow. When materializing a scenario in a workflow process, firstly, you have to decide upon the business rules that can be applied, if certain tags need to be added or if the corresponding workflow job is transient or not. All these options can be set up before actually build up the scenario by dragging and dropping components into the workflow.

Configuring Workflows

For each workflow scenario, you can create a separate configuration that activates whenever the corresponding workflow runs. The below configurations always takes precedence from data set in Properties pane.

Job Name Pattern

By default, the Job name created by the workflow will be a combination of the Communication name and date/time when the Job was run. If needed, you can change the default pattern by following the steps described below.

Complex Expressions

The Complex Expression Dialog allows you to build dynamic values whenever a Dynamic Value ( fx ) button is present. You can select values from the Data Representation Tree or choose one or more predefined parameters.

The following predefined parameters groups are present:

Date
Year Current year.
Short Year Current year.
Month Current month.
Short Month Current month.
Day Current day.
Hour in Day (24 hours) Current hour, {HH} format. (Ex. 22)
Hour in half-day (12 hours) Current hour, {hh} format. (Ex. 10 PM)
Minutes Current minutes, {mm} format. (Ex. 12)
Seconds Current seconds, {ss} format. (Ex. 20)
Milliseconds Current milliseconds, {fff} format. (Ex. 126)
Standard
Guid A uniquely generated value.
Job ID The ID of the Job that is currently being run.
Position The ordinal number in an enumeration. For example, a render step can receive multiple work items as input. You can use the position parameter to create an expression for each one of the work items.
Copy Position The ordinal number in an enumeration that stores a copy.
Trigger File If the executing workflow is started by a trigger this is the file that was retrieved by the trigger.
Trigger File Name Without Extension If the executing workflow is started by a trigger this is the file that was retrieved by the trigger. The file name will be the same as the input file, without the extension.
Public Link A uniquely generated URL for a file that is published either through the Customer Portal or as a public file. Note that the file still has to be tagged to become public.
Interactive Document URL The URL path for the Interactive Communication Document type.
Input File Path The path to the XML file that is the source work item for this step. Note that usually, this is the result of the Split step.
Communication Name The name provided for the new Communication.
Enterprise URL The URL path for the NorthStar CCM Environment.
Portal URL The URL path for the Customer Portal platform.
Running User - Username The username of the person that started the workflow.
Running User - Email The email of the person that started the workflow.

Transient Run

Document production jobs can now be tagged as transient jobs. When a job is transient, its produced output will be stored in an in-memory repository.

The advantage of transient jobs can include:

To run transient jobs, the associated workflow needs to be configured as transient. Follow the steps below to set up a workflow to run in transient mode.

Notes

Within a transient workflow you should not use manual steps. This includes the Review Document, Review Snapshot, Issue, Task or Review Journey. Note that, the workflow will allow you to configure it, but at run time (before the job creation), the request will fail.

A workflow tagged as transient can be run either from the Enterprise Website, or from a new API end point. To learn more about working with Direct Jobs, please access this section in the Developers Guide.

There are many ways for running a transient workflow within the Enterprise Website:

Adding Business Rules to Workflows

In the NorthStar CCM Software, business rules are directly connected with the workflow and must be attached to one of the steps within. Otherwise, they become useless.

Notes

To learn more about business rules and how to edit them, please access this link.

Configuring Tags

Within the NorthStar CCM Platform, you can define and use tags that propagates automatically within the workflow execution.

The first step in using a propagatable tag is to define it, by following the steps below:

Next, add the newly created tag to the Tag step:

When the workflow will run, the tag set up will propagate to all the other steps from the workflow flow. For example, let's assume the following workflow flow:

Start >> Get Data >> Tag >> Render >> Email >> End

Under the Tag step we've added the propagatable tag, called CorrelationId, with a random default value. After running the workflow, the Render step output will inherit the CorrelationId from tagged input, and the email ticket (from the Send Email step) will inherit the CorrelationId from the document generated by the Render step. So, the input, the document and the email ticket will contains the same tag named CorrelationId.

Another example can be when your workflow contains an Assembly or Archive component. These steps can receive multiple documents and generate an output combining all the inputs. After running the workflow, the Assembly/Archive steps will contain a tag equal with the value of input documents tags.

Note that the tags can only propagate as long as the workflow logic will allows this. (For example, a custom step will break tag propagation and the user should re-tag the necessary files using the API in order to continue streaming the tags with the workflow).

Workflow Components

Automated Workflow Components (Steps) are programmatic steps that do not require user intervention. These can be added by drag and drop from the Components tab of the Sidebar. To configure it, access the Style tab, below Components. Depending on the step added, you will see basic and advanced parameters. To add an advanced parameter, simply select the +Add Parameter button and choose the needed parameter from the drop-down menu.

Steps and Properties

In this section, you can explore all the steps available in a workflow, together with all their corresponding properties.


Append

The Append step will allow you to add additional files to the end of the rendered documents. This is helpful if you need to add a static terms and conditions page or some other document without having to modify the template being used.

For other workflow components please access the Components Table.


Archive

Use the Archive step to create a ZIP archive.

For other workflow components please access the Components Table.


Assembly

The Assembly step enables the creation of document bundles. These are useful mostly for generating print streams.

The usual options for steps after an Assembly step are Render or Overlay.

For other workflow components please access the Components Table.


Copy to Amazon S3

NorthStar CCM can also accommodate the need to push files directly to an Amazon bucket.

For other workflow components please access the Components Table.


Copy to Azure

For other workflow components please access the Components Table.


Copy to NorthStar CCM Folder

The copy-to-northstar-ccm-folder step allows you to send any project files to a destination folder located in the NorthStar CCM Environment.

For other workflow components please access the Components Table.


Copy to FTP

NorthStar CCM can also accommodate the need to push files to the host of your choosing using File Transfer Protocol (FTP). With this step, you can configure a few simple parameters for host URL and login credentials, and NorthStar CCM will send the files of your choosing to the host specified.

For other workflow components please access the Components Table.


Copy to Folder

The copy-to-folder step allows you to send any project files to a destination folder. If you are working with our hosted version, this step will send the files to a folder on our server. If you are working with our custom version, you can send the files to a folder on your server or locally on your machine.

For other workflow components please access the Components Table.


Copy to SharePoint

NorthStar CCM can also accommodate the need to push files directly to a SharePoint folder.

For other workflow components please access the Components Table.


Create Correspondence

The Create Correspondence step is used to combined Correspondence documents and Batch Communications. The step allows starting individual communications on multithreads and it supports to override Workflow Parameters. A use case for this would be having a monthly survey form for your customer to fill out.

You would use this step to produce those Correspondence documents in batch and push them to their personal Customer Portal page.

For other workflow components please access the Components Table.


Create Project

This step will create a new Communication Project in the destination Environment as indicated by the values in the parameters.

Create Project is commonly used as one of the Workflow steps in the Deploy Workflow that will be generated by NorthStar CCM when the Deploy Custom Action is added to a Project.

For other workflow components please access the Components Table.


Create Version

Create Version will create a Version of a folder and all the files contained within that folder.

Create Version is commonly used as one of the Workflow steps in the Deploy Workflow that will be generated by NorthStar CCM when the Deploy Custom Action is added to a Communication.

To read more information about Versions, please visit the Versions chapter of this guide.

For other workflow components please access the Components Table.


Data Ingestion

Data ingestion is expected to run as an INSERT query on data sets inserted from other sources (Salesforce, Database, etc.). The step receives as input .edo files configured in Data Modeler and creates specific queries corresponding to defined connections in the Modeler tool.

For other workflow components please access the Components Table.


Provide Quote

Provide Quote will help obtaining a quote that describes the work that needs to be done and it will deliver the message outside your organization to a 3rd party. Therefore, a powerful feature is enabled - the ability to have people outside your organization participate in the workflow without needing a user account (for example, Everyone group).

For other workflow components please access the Components Table.


Create-Update People

This step will allow the creation or the modification of People (Contacts, Accounts) entities within your organization.

For other workflow components please access the Components Table.


Custom

The Custom step will allow you to add custom command line code. Use the fx button to pass authentication token, Job ID, and other useful parameters.

A Custom step should be used when all the other built-in Workflow steps cannot offer a satisfactory solution to a particular use case. Due to this type of step, clients have the ability to configure a specific behavior according to their needs.

For example, a client wants to send faxes. At this moment, NorthStar CCM Solutions does not cover the scenario of configuring fax channels. Therefore, one client can design the following workflow:

Let’s assume a particular scenario for rendering PDF outputs from inputs received from an executable file. Those inputs will be written as access tokens in a log.txt file within the specified folder.

For other workflow components please access the Components Table.


Decompress

This step will extract files from a Zip folder. You can use this step to extract files form; a previous Archive step, a Zip archive such as one placed in a hot folder Trigger.


Delete Version

The delete version step will need to be after a create version step in the workflow. This step will delete the version that has been created by this workflow.

To read more information about Versions, please visit the Versions chapter.

For other workflow components please access the Components Table.


Electronic Signature

This workflow step can be used if you need to collect electronic signatures for your document. As a prerequisite, you will need to make sure that you have configured an Electronic Signature connection. The section below will highlight the steps to set up and work with an electronic signature provider (DocuSign, EcoSign, etc.) in NorthStar CCM.

For other workflow components please access the Components Table.


Email

Use the Email step to quickly configure your workflow to send email to recipients that are either statically or dynamically (retrieved from input data) defined. A common workflow scenario to send emails is Get Data >> Email, or Get Data >> Render >> Email. For more advanced configurations, please see the Email Advanced step.

For other workflow components please access the Components Table.


Email Advanced

If you want to access multiple email parameters, add the Email Advanced step to your workflow.

To send emails to multiple recipients use the Group step to create groups for each recipient. Each group can contain a single Plain Text or Email Body work item and 0 or more attachments.

For other workflow components please access the Components Table.


Extract Sub-Form

This step will fetch the data from a populated sub-form.

For other workflow components please access the Components Table.

Get Data

Getting you data is usually the first step in a workflow. Use this step quickly configure the Get Data component to retrieve a data model (.edx file) as an input. For more advanced output and conditions, please see the Get Data(Advanced) step.

For other workflow components please access the Components Table.


Get Data Advanced

If you want access to multiple input files and data conditions, add the advanced step to your workflow. In NorthStar CCM, you can use XML files that are already uploaded into the repository, NorthStar CCM forms (.efd files) created within Form Editor or data models (.edx files) created using the Modeler tool, which is part of NorthStar CCM Studio. Data models created in Modeler can retrieve data from any data source including SQL databases, Web Services, spreadsheets and more.

For other workflow components please access the Components Table.


Get Files

The Get Files step is used to copy files from the disk drive to the NorthStar CCM Repository. The copied files will become output for this step, and used as input for the next steps (e.g. Assembly).

Note

The user that runs the NorthStar CCM Service needs to have read access to the files that are used in the Get Files step.

For other workflow components please access the Components Table.


Group

The Group step will aggregate the input work items according to a given criterion.

For other workflow components please access the Components Table.


If

The If step allows you to set up a condition statement for the execution of a process or another step within the workflow.

For other workflow components please access the Components Table.


Index

The Index step will allow you to create a custom CSV file. This will log the selected values from the rendered data source.

For other workflow components please access the Components Table.


Issue

The Issue step will take the assets received as an input, and will create a new Issue task within the NorthStar CCM Platform.

For other workflow components please access the Components Table.


Maintenance

The Maintenance step will delete old jobs, based on the values indicated by the parameters, to reclaim storage space.

Using this step alone will allow you to create a Maintenance Workflow, which can be used as a Custom Action in a Communication.

For other workflow components please access the Components Table.


Overlay

The Overlay step will allow you to add a one-page template which is rendered over the selected pages. This is helpful when adding watermarks or barcodes to specific pages in the document.

For other workflow components please access the Components Table.


Post to Social Media

NorthStar CCM will allow you to post messages and or images directly to your Social Media pages.

For other workflow components please access the Components Table.


Print

Print step configures how print operation should work.

For other workflow components please access the Components Table.


Publish Version

The Publish Version step will publish the Version, that was created in the previous Create Version step, to a destination Environment and Folder as indicated by the parameters.

Create Version is commonly used as one of the Workflow steps in the Deploy Workflow that will be generated by NorthStar CCM when the Deploy Custom Action is added to a Communication.

When the Review and Approval is enabled, the step will be on Pending until an approved version of the communication is available. To read more information about Version, please visit the Version chapter.

For other workflow components please access the Components Table.


Render

The Render step produces the output documents. You can quickly add this step to your workflow when you need to quickly generate a simple common output file. For more advanced output and conditions, please see the Render Advanced step.

For more information, please see the Render Advanced step.


Render Advanced

If you want to generate various output files or are you looking for more advanced output conditions, add the advanced render step to your workflow. You can configure what type of output you would like to produce, what template to use, and other variables that will drive this production. In this section, you will have access to the different configuration options for each output type.

Note

Changing the Output Format will automatically reset all parameters related to the previous output format that has been configured previously.

For other workflow components please access the Components Table.


Render DITA

The Render DITA step is available for you to render your DITA input to a variety of different supported outputs for DITA. One of the powerful assets of DITA processing is the capability to generate various documentation outputs from a single source driving what content is to be used.


Review Document

The Review Document step will take the document received as an input, and will create a new Review Document task within the NorthStar CCM Platform.

For other workflow components please access the Components Table.

Review Journey

The Review Journey step will use the journey context as input and will create a new Review Journey task within the NorthStar CCM Platform.

For other workflow components please access the Components Table.


Review Snapshot

The Review Snapshot step will take the version received as an input, and will create a new Review Snapshot task within the NorthStar CCM Platform.

For other workflow components please access the Components Table.


Run Project

The Run Project step will allow you to select a separate communication project to run. The step allows starting individual communications on multithreads. Additionally, Run Project supports groups as input. For example, if a Group step is followed by a Run Project, the last step will run a communication for each group. Also if Use Input is checked, all files form individual groups that will be sent as input for communications.

For other workflow components please access the Components Table.


Run Workflow

The Run Workflow step will allow you to select a separate workflow to run. This task is very helpful when creating a review and approval workflow. It will allow you to generate the output from a workflow and send it to a user or group for them to review without needing technical knowledge of how the system works. The step starts individual communications on multithreads. Additionally, Run Workflow supports groups as input. For example, if a Group step is followed by a Run Workflow, the last step will run a job for each group. Also if Use Input is checked, all files form individual groups that will be sent as input for jobs.

For other workflow components please access the Components Table.


SMS

The SMS step will send automatic SMS messages from the workflow by configuring some settings such as SMS recipients, channel and senders.

For other workflow components please access the Components Table.


Split step

If your input data is in XML that contains nodes for multiple documents, you can use the Split step to produce several sub-XMLs, one for each document.

Example: Let’s assume your input data file contains the monthly invoice content for thousands of customers:

Invoices.XML

<invoices>
    <invoice account="Joe Doe">
    …
    </invoice>
    <invoice account="Mary Jane">
    …
    </invoice>  
    …
</invoices>

After running Split, a separate XML file will be created for each node that is a direct child of the root element:

Invoice01.XML

<invoice account="Joe Doe">
    …
</invoice>

Invoice02.XML

<invoice account="Mary Jane">
    …
</invoice>

… and so on.

For other workflow components please access the Components Table.


Tag

NorthStar CCM allows you to add tags (metadata) to documents at the time they are rendered. Some of the tags you can can add have a predefined meaning in NorthStar CCM, for example, when a document is tagged with a Contact ID, it will show up in the list of documents for that customer, in the Customer Module.

Name Value Description
Public {Guid} This will create a unique ID to be used to create the public URL. The document will be accessible online without authentication, through an URL similar to the following: https://enterprise-us01-cx.mhcnorthstar.com:8097/NorthStarCCM/PublicLink?publicId={GUID}&embed=true
Contact ID Contact ID Associated this document with the specified contact. The contact ID can be statically added or pulled in for your data source.
Account ID Account ID Associated this document with the specified account. The account ID can be statically added or pulled in for your data source.
Portal Available True/False This will allow the document to be visible in the customer portal. Users have to be authenticated before accessing the document.
Portal Category Documents/Forms/Analytics Choose where this document will be stored in the customer portal.
Portal Title Anything Give the document a title that will be shown in the customer portal.
Status Anything Stores the current status of its associated workflow.

For other workflow components please access the Components Table.


Task

The Task step will take the assets received as an input, and will create a new Task within the NorthStar CCM Platform.

For other workflow components please access the Components Table.


Validation

The Validation step will check the XML file introduced as a data source if corresponds to the format of a .xsd file. In this way, you can obtain a faster information if an error might be occurring, without having to perform all the steps in the Workflow.


Wait

The Wait step is used to suspend the entire execution of the workflow until a specified period of time passes.


Web Request

Calling HTTP Web Services (GET, SET, POST, etc.) in a workflow is possible using the Web Request step.